           package com.java.diagnostics.visualizer.parser.vgc.converters;
           
           import com.java.diagnostics.visualizer.impl.axes.AbstractUnitConverter;
           import com.java.diagnostics.visualizer.impl.axes.NumberFormatter;
           
           public abstract class SimpleUnitConverter extends AbstractUnitConverter
           {
             protected boolean normalised = true;
             protected double normalisationOffset;
             protected double multiplier = 1.0D;
           
             public double convert(double number)
             {
               if (this.normalised) {
                 return (number - this.normalisationOffset) * this.multiplier;
               }
           
               return number * this.multiplier;
             }
           
             public String formatUnconverted(double number)
             {
               return NumberFormatter.prettyString(number);
             }
           
             public void setOffset(double offset)
             {
               this.normalisationOffset = offset;
             }
           }

